<?php # Psychological_Test_Answer.php

require_once 'DBObject.php';

class Psychological_Test_Answer extends DBObject {
	public $tablename = "psychological_test_answers";
	
	public $id;
	public $patient_id;
	public $qnumber1;
	public $qnumber2;
	public $qnumber3;
	public $global;
	public $record_date;
	
		
	public function get() {
		return array(
					'id' => $this->id,
					'patient_id' => $this->patient_id,
					'qnumber1' => $this->qnumber1,
					'qnumber2' => $this->qnumber2,
					'qnumber3' => $this->qnumber3,
					'global' => $this->global,
					'record_date' => $this->record_date
				);
	}

	
	public function validate() {
		return parent::validateObject($this->tablename);
	}
}